package com.cloud.logger.zchain.zchainserver.mongo;


import com.cloud.logger.zchain.zchainserver.entity.ProjectUserRelation;

import java.io.Serializable;
import java.util.List;

/**
 * User: wcy
 * Date: 2017/11/2
 * Time: 11:29
 */
public interface ProjectUserRelationRepository extends BaseMongoRepository<ProjectUserRelation,Serializable> {

    List<ProjectUserRelation> findByProjectId(String id);

    int deleteByProjectId(String id);

    List<ProjectUserRelation> findByUserId(String userId);
}
